package com.joyoung.cons;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class JyUser implements Serializable {

  /**
   *
   */
  private static final long serialVersionUID = 8634967511613563809L;
  private String op_action;
  private String id = "joyoung";// 用户id
  private String uname = "";
  private String passwd = "";
  private String sourcetype = "-1";
  private String nickname;
  private String openid3rd;
  private int familySize;
  private int version;
  private String mobile_id;
  private String mobilenum = "";// 手机号码
  private int gender;// 性别 0女1男
  private String birthdate;
  private String email = "";
  private String note = "";
  private String uimgUrl = "";

  private long lastActTime;
  private String ubid;

  private String identifyingcode = "";

  private long crtdate;// 用户创建时间

  private int valid;// 效验码

  private String sessionKey = "";

  private String isModifyNickname = ""; // 是否可以更改用户昵称

  private String createtime;

  private String sessionId;
  private String dataKey;

  public String getSessionId() {
    return sessionId;
  }

  public void setSessionId(String sessionId) {
    this.sessionId = sessionId;
  }

  public String getDataKey() {
    return dataKey;
  }

  public void setDataKey(String dataKey) {
    this.dataKey = dataKey;
  }

  public Integer getValid() {
    return valid;
  }

  public void setValid(Integer valid) {
    this.valid = valid;
  }

  public void setValid(int valid) {
    this.valid = valid;
  }

  public long getLastActTime() {
    return lastActTime;
  }

  public void setLastActTime(long lastActTime) {
    this.lastActTime = lastActTime;
  }

  public String getUbid() {
    return ubid;
  }

  public void setUbid(String ubid) {
    this.ubid = ubid;
  }

  public boolean isDeleted() {
    return deleted;
  }

  public void setDeleted(boolean deleted) {
    this.deleted = deleted;
  }


  private boolean deleted;// 是否被删除

  public String getOp_action() {
    return op_action;
  }

  public void setOp_action(String op_action) {
    this.op_action = op_action;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getUname() {
    return uname;
  }

  public void setUname(String uname) {
    this.uname = uname;
  }

  public String getPasswd() {
    return passwd;
  }

  public void setPasswd(String passwd) {
    this.passwd = passwd;
  }

  public String getSourcetype() {
    return sourcetype;
  }

  public void setSourcetype(String sourcetype) {
    this.sourcetype = sourcetype;
  }

  public String getMobilenum() {
    return mobilenum;
  }

  public void setMobilenum(String mobilenum) {
    this.mobilenum = mobilenum;
  }

  public long getCrtdate() {
    return crtdate;
  }

  public void setCrtdate(long crtdate) {
    this.crtdate = crtdate;
  }

  public int getGender() {
    return gender;
  }

  public void setGender(int gender) {
    this.gender = gender;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }

  public String getUimgUrl() {
    return uimgUrl;
  }

  public void setUimgUrl(String uimgUrl) {
    this.uimgUrl = uimgUrl;
  }

  public String getIdentifyingcode() {
    return identifyingcode;
  }

  public void setIdentifyingcode(String identifyingcode) {
    this.identifyingcode = identifyingcode;
  }

  public Ask getInstanceAsk() {
    return new Ask();
  }

  public Answer getInstanceAnswer() {
    return new Answer();
  }

  public String getSessionKey() {
    return sessionKey;
  }

  public void setSessionKey(String sessionKey) {
    this.sessionKey = sessionKey;
  }

  public String getIsModifyNickname() {
    return isModifyNickname;
  }

  public void setIsModifyNickname(String isModifyNickname) {
    this.isModifyNickname = isModifyNickname;
  }


  public String getCreatetime() {
    return createtime;
  }

  public void setCreatetime(String createtime) {
    this.createtime = createtime;
  }


  public String getBirthdate() {
    return birthdate;
  }

  public void setBirthdate(String birthdate) {
    this.birthdate = birthdate;
  }


  public static long getSerialVersionUID() {
    return serialVersionUID;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public String getOpenid3rd() {
    return openid3rd;
  }

  public void setOpenid3rd(String openid3rd) {
    this.openid3rd = openid3rd;
  }

  public int getFamilySize() {
    return familySize;
  }

  public void setFamilySize(int familySize) {
    this.familySize = familySize;
  }

  public int getVersion() {
    return version;
  }

  public void setVersion(int version) {
    this.version = version;
  }

  public String getMobile_id() {
    return mobile_id;
  }

  public void setMobile_id(String mobile_id) {
    this.mobile_id = mobile_id;
  }

  public class Ask {

    public String content;
    public Long createtime;
    public List<Answer> answer = new ArrayList<Answer>();
  }

  public class Answer {

    public String content;
    public Long createtime;
  }


  @Override
  public String toString() {
    return "JyUser{" +
        "op_action='" + op_action + '\'' +
        ", id='" + id + '\'' +
        ", uname='" + uname + '\'' +
        ", passwd='" + passwd + '\'' +
        ", sourcetype='" + sourcetype + '\'' +
        ", nickname='" + nickname + '\'' +
        ", openid3rd='" + openid3rd + '\'' +
        ", familySize=" + familySize +
        ", version=" + version +
        ", mobile_id='" + mobile_id + '\'' +
        ", mobilenum='" + mobilenum + '\'' +
        ", gender=" + gender +
        ", birthdate='" + birthdate + '\'' +
        ", email='" + email + '\'' +
        ", note='" + note + '\'' +
        ", uimgUrl='" + uimgUrl + '\'' +
        ", lastActTime=" + lastActTime +
        ", ubid='" + ubid + '\'' +
        ", identifyingcode='" + identifyingcode + '\'' +
        ", crtdate=" + crtdate +
        ", valid=" + valid +
        ", sessionKey='" + sessionKey + '\'' +
        ", isModifyNickname='" + isModifyNickname + '\'' +
        ", createtime='" + createtime + '\'' +
        ", sessionId='" + sessionId + '\'' +
        ", dataKey='" + dataKey + '\'' +
        ", deleted=" + deleted +
        '}';
  }
}
